﻿using ControlHelper.Attributes;
using Creator.Access.Core;
using Creator.Core.Base; 

namespace Creator.Core.Component
{
    [ComponentMenu("基础/连接组件")]
    public class OperationComponent : LogicComponet
    {
        public OperationComponent(BaseObject baseObject) : base(baseObject)
        {
            if(Operation != null)
            {
                Operation.Log += ShowMsg;
            }

        }
 

        [NickName("连接方式")] 
        public OperationBase Operation { get; set; }

        public override string Name => "连接组件";

        public override string ToString()
        {
            return BaseObject.Name + "_" + Name;
        }


    



    }
}
